package 比较器;
//2.
import java.util.Comparator;

public class AgeCompararor implements Comparator<Student> {
    //重写compare-Generate-implement
    @Override
    public int compare(Student o1, Student o2) {
        return o1.age-o2.age;
    }
}
